package com.st.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.st.mapper.StRiskAssessmentQuestionsMapper;
import com.st.domain.StRiskAssessmentQuestions;
import com.st.service.IStRiskAssessmentQuestionsService;

/**
 * 风险体检题目Service业务层处理
 *
 * @author zhw
 * @date 2024-10-24
 */
@Service
public class StRiskAssessmentQuestionsServiceImpl extends ServiceImpl<StRiskAssessmentQuestionsMapper, StRiskAssessmentQuestions> implements IStRiskAssessmentQuestionsService {
    @Autowired
    private StRiskAssessmentQuestionsMapper stRiskAssessmentQuestionsMapper;

    /**
     * 查询风险体检题目
     *
     * @param id 风险体检题目主键
     * @return 风险体检题目
     */
    @Override
    public StRiskAssessmentQuestions selectStRiskAssessmentQuestionsById(Integer id) {
        return stRiskAssessmentQuestionsMapper.selectStRiskAssessmentQuestionsById(id);
    }

    /**
     * 查询风险体检题目列表
     *
     * @param stRiskAssessmentQuestions 风险体检题目
     * @return 风险体检题目
     */
    @Override
    public List<StRiskAssessmentQuestions> selectStRiskAssessmentQuestionsList(StRiskAssessmentQuestions stRiskAssessmentQuestions) {
        return stRiskAssessmentQuestionsMapper.selectStRiskAssessmentQuestionsList(stRiskAssessmentQuestions);
    }

    /**
     * 新增风险体检题目
     *
     * @param stRiskAssessmentQuestions 风险体检题目
     * @return 结果
     */
    @Override
    public int insertStRiskAssessmentQuestions(StRiskAssessmentQuestions stRiskAssessmentQuestions) {
            return stRiskAssessmentQuestionsMapper.insertStRiskAssessmentQuestions(stRiskAssessmentQuestions);
    }

    /**
     * 修改风险体检题目
     *
     * @param stRiskAssessmentQuestions 风险体检题目
     * @return 结果
     */
    @Override
    public int updateStRiskAssessmentQuestions(StRiskAssessmentQuestions stRiskAssessmentQuestions) {
        return stRiskAssessmentQuestionsMapper.updateStRiskAssessmentQuestions(stRiskAssessmentQuestions);
    }

    /**
     * 批量删除风险体检题目
     *
     * @param ids 需要删除的风险体检题目主键
     * @return 结果
     */
    @Override
    public int deleteStRiskAssessmentQuestionsByIds(Integer[] ids) {
        return stRiskAssessmentQuestionsMapper.deleteStRiskAssessmentQuestionsByIds(ids);
    }

    /**
     * 删除风险体检题目信息
     *
     * @param id 风险体检题目主键
     * @return 结果
     */
    @Override
    public int deleteStRiskAssessmentQuestionsById(Integer id) {
        return stRiskAssessmentQuestionsMapper.deleteStRiskAssessmentQuestionsById(id);
    }
}